package cn.chencq.thread;

public class TraditionalThread {
	public static void main(String[] args) {

		Thread thread = new Thread() {
			@Override
			public void run() {
				try {
					Thread.sleep(500);
					System.out.println(Thread.currentThread().getName());
				} catch (InterruptedException e) {
					e.printStackTrace();
				}
			}
		};
		thread.start();

		Thread thread2 = new Thread(new Runnable() {
			@Override
			public void run() {
				try {
					Thread.sleep(500);
					System.out.println(Thread.currentThread().getName());
				} catch (InterruptedException e) {
					e.printStackTrace();
				}
			}
		});

		thread2.start();
	}

}
